<div class="col-md-3 avatarBig">
    <p class="avatar-box">
        <a href="#" class="avatar-img">
            <img src="{{ user.avatar }}" alt="" id="img">
        </a>
    </p>
    <p class="myInfo"> 
        <span class="myscore">{{ user.score }} 积分</span>
        <span class="nickname">{{ user.nickname }}</span>
    </p>
    <form action="/upload" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="{{ user._id }}">
        <input type="file" name="avatar" id="avatar" value="{{ user.avatar }}">
        <button type="submit" class="btn btn-success mybtn">更换头像</button>
    </form>
</div>